package com.qf.service;

import com.qf.pojo.Cart;

import java.util.List;

/**
 * @author 29125
 * @version V1.0
 * @Project java2203
 * @Package com.qf.service
 * @Description:
 * @Date 2022/5/25 10:47
 */
public interface CartService {
    //创建购物车
    public boolean createCart(Integer uid, Integer pid);

    //用户id查询购物车集合
    public List<Cart> findCartListByUid(Integer uid);
    //修改购物车的商品  cid num
    public void updateCart(Integer cid, Integer num);
    //根据id删除购物车商品
    public void deleteById(Integer id);

}
